﻿using System;

namespace _72_在委托类型中使用泛型_泛型
{
    class Program
    {
        static void Main(string[] args)
        {
            MyTestDel<int, byte, string> test = (a, b) =>
              {
                  string ret = $"type={a.GetType().Name},value={a}\n type={b.GetType().Name},value={b}";
                  return ret;
              };

            //调用委托实例
            Console.WriteLine(test(350, 27));
            Console.Read();
        }
    }

    public delegate R MyTestDel<in A1, in A2, out R>(A1 m, A2 n)
        where A1 : struct
        where A2 : struct;
}
